-- GENERATED SPELL FOR [Cenarion Hold Infantry] --


function spell0_15184(pUnit, Event) --@Incapacitating Shout,Self--
pUnit:FullCastSpellOnTarget(18328,pUnit)
pUnit:RegisterEvent('Sorts_15184', 8284, 1)
end

function spell1_15184(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15184', 5314, 1)
end

function spell2_15184(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15184', 2263, 1)
end

function Sorts_15184(pUnit, Event)
local choix_sorts_15184 = math.random(0, 2)
if choix_sorts_15184 == 0 then
pUnit:RegisterEvent('spell0_15184', 1, 1)
end
if choix_sorts_15184 == 1 then
pUnit:RegisterEvent('spell1_15184', 1, 1)
end
if choix_sorts_15184 == 2 then
pUnit:RegisterEvent('spell2_15184', 1, 1)
end
end

function mob15184_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15184', math.random(1500, 3000), 1)
end

function mob15184_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15184_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15184_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15184, 1, 'mob15184_Action')
RegisterUnitEvent(15184, 2, 'mob15184_Leave')
RegisterUnitEvent(15184, 3, 'mob15184_Kill')
RegisterUnitEvent(15184, 4, 'mob15184_Die')
